// 模拟商品数据
export const mockProducts = [
  {
    id: 1,
    name: '无线蓝牙耳机',
    category: '电子产品',
    price: 299.99,
    originalPrice: 399.99,
    image: 'https://picsum.photos/300/300?random=1',
    rating: 4.5,
    reviews: 128,
    description: '高品质无线蓝牙耳机，支持主动降噪，续航时间长达30小时。'
  },
  {
    id: 2,
    name: '智能手表',
    category: '智能设备',
    price: 1299.00,
    originalPrice: 1599.00,
    image: 'https://picsum.photos/300/300?random=2',
    rating: 4.8,
    reviews: 89,
    description: '功能强大的智能手表，支持健康监测、运动追踪和消息提醒。'
  },
  {
    id: 3,
    name: '便携式充电宝',
    category: '电子配件',
    price: 199.00,
    originalPrice: 249.00,
    image: 'https://picsum.photos/300/300?random=3',
    rating: 4.3,
    reviews: 256,
    description: '20000mAh大容量充电宝，支持快充，轻薄便携。'
  },
  {
    id: 4,
    name: '无线充电器',
    category: '电子配件',
    price: 159.00,
    originalPrice: 199.00,
    image: 'https://picsum.photos/300/300?random=4',
    rating: 4.2,
    reviews: 97,
    description: '支持多种设备的无线充电器，充电速度快，安全可靠。'
  },
  {
    id: 5,
    name: '高清网络摄像头',
    category: '电脑配件',
    price: 399.00,
    originalPrice: 499.00,
    image: 'https://picsum.photos/300/300?random=5',
    rating: 4.6,
    reviews: 64,
    description: '1080P高清网络摄像头，适用于视频会议、直播等多种场景。'
  },
  {
    id: 6,
    name: '机械键盘',
    category: '电脑配件',
    price: 599.00,
    originalPrice: 799.00,
    image: 'https://picsum.photos/300/300?random=6',
    rating: 4.7,
    reviews: 142,
    description: '87键机械键盘，青轴设计，手感出色，适合游戏和办公。'
  }
]

// 模拟用户数据
export const mockUser = {
  id: 1,
  username: '张三',
  phone: '13800138000',
  email: 'zhangsan@example.com',
  membershipLevel: '黄金会员',
  points: 1280
}

// 模拟优惠券数据
export const mockCoupons = [
  {
    id: 1,
    code: 'SAVE10',
    discount: 10,
    type: 'fixed',
    minAmount: 100,
    expiryDate: '2025-12-31',
    status: 'available'
  },
  {
    id: 2,
    code: 'SAVE20',
    discount: 20,
    type: 'fixed',
    minAmount: 200,
    expiryDate: '2025-11-30',
    status: 'used'
  },
  {
    id: 3,
    code: 'SAVE5P',
    discount: 5,
    type: 'percentage',
    minAmount: 50,
    expiryDate: '2025-10-15',
    status: 'expired'
  }
]

// 模拟订单数据
export const mockOrders = [
  {
    id: 'ORD202508001',
    date: '2025-08-15',
    status: '待支付',
    items: [
      {
        productId: 1,
        name: '无线蓝牙耳机',
        price: 299.99,
        quantity: 1,
        image: 'https://picsum.photos/100/100?random=1'
      }
    ],
    total: 299.99,
    shipping: 0,
    discount: 0,
    finalTotal: 299.99
  },
  {
    id: 'ORD202507002',
    date: '2025-07-22',
    status: '已支付',
    items: [
      {
        productId: 2,
        name: '智能手表',
        price: 1299.00,
        quantity: 1,
        image: 'https://picsum.photos/100/100?random=2'
      },
      {
        productId: 4,
        name: '无线充电器',
        price: 159.00,
        quantity: 2,
        image: 'https://picsum.photos/100/100?random=4'
      }
    ],
    total: 1617.00,
    shipping: 0,
    discount: 10,
    finalTotal: 1607.00
  },
  {
    id: 'ORD202506003',
    date: '2025-06-10',
    status: '已送达',
    items: [
      {
        productId: 3,
        name: '便携式充电宝',
        price: 199.00,
        quantity: 1,
        image: 'https://picsum.photos/100/100?random=3'
      },
      {
        productId: 6,
        name: '机械键盘',
        price: 599.00,
        quantity: 1,
        image: 'https://picsum.photos/100/100?random=6'
      }
    ],
    total: 798.00,
    shipping: 0,
    discount: 0,
    finalTotal: 798.00
  }
]

// 模拟购物车数据
export const mockCartItems = [
  {
    id: 1,
    productId: 1,
    name: '无线蓝牙耳机',
    price: 299.99,
    quantity: 1,
    image: 'https://picsum.photos/100/100?random=1'
  },
  {
    id: 2,
    productId: 2,
    name: '智能手表',
    price: 1299.00,
    quantity: 1,
    image: 'https://picsum.photos/100/100?random=2'
  }
]

// 模拟收货地址数据
export const mockAddresses = [
  {
    id: 1,
    name: '张三',
    phone: '13800138000',
    province: '北京市',
    city: '北京市',
    district: '朝阳区',
    detail: '某某街道某某号某某大厦101室',
    isDefault: true
  },
  {
    id: 2,
    name: '李四',
    phone: '13900139000',
    province: '上海市',
    city: '上海市',
    district: '浦东新区',
    detail: '某某路某某号某某小区2号楼502室',
    isDefault: false
  }
]